//just paint a 2D line on screen
#version 460

layout (push_constant) uniform SPushConstants
{
    vec2 Points[2];
    vec4 Color;
    float ZOrder;
} PushConstants;

layout (location = 0) out vec4 OutColor;

void main()
{
    gl_Position = vec4(PushConstants.Points[gl_VertexIndex], PushConstants.ZOrder, 1.0);
    OutColor = PushConstants.Color;
}